package com.lys.item;

import com.lys.ExampleMod;
import net.fabricmc.fabric.api.item.v1.FabricItemSettings;
import net.minecraft.item.Item;
import net.minecraft.registry.Registries;
import net.minecraft.registry.Registry;
import net.minecraft.util.Identifier;

public class ModItems {

    public static final Item ITEM_GROUP_ICON = registerItem("item_group_icon",new Item(new FabricItemSettings()));

    private static Item registerItem(String name, Item item){
        return Registry.register(Registries.ITEM,new Identifier(ExampleMod.MOD_ID,name),item);
    }

    public static void registerModItems(){
        ExampleMod.LOGGER.info("Registering Mod Item for" + ExampleMod.MOD_ID);
    }
}
